package cn.jetpiece.cloud.joss.api.object.model.params;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * <p>
 * 创建域记录
 * </p>
 *
 * @author XuJZ
 * @since 2020-09-05
 */
@Data
@ApiModel
public class CreateRegionParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 服务商UUID
     */
    @NotBlank(message = "服务商UUID不能为空")
    @ApiModelProperty(value = "服务商UUID", required = true)
    private String providerId;

    /**
     * 中文名称
     */
    @ApiModelProperty(value = "中文名称")
    private String cnName;

    /**
     * 英文名称
     */
    @NotBlank(message = "英文名称不能为空")
    @ApiModelProperty(value = "英文名称", required = true)
    private String enName;

    /**
     * 协议
     */
    @NotBlank(message = "协议不能为空")
    @ApiModelProperty(value = "协议", required = true)
    private String protocol;

    /**
     * 外网Endpoint
     */
    @NotBlank(message = "外网Endpoint不能为空")
    @ApiModelProperty(value = "外网Endpoint", required = true)
    private String internetEndpoint;

    /**
     * 内网Endpoint
     */
    @ApiModelProperty(value = "内网Endpoint")
    private String internalEndpoint;

    /**
     * 启用(1:是,0:否)
     */
    @ApiModelProperty(value = "启用(1:是,0:否)")
    private Integer isEnable;
}
